body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(-120deg, #152b39, #360f19);
    color: #8f8f8f;
}

.mgb12 {
    margin-bottom: 12px;
}

.mgb24 {
    margin-bottom: 24px;
}

.mgb32 {
    margin-bottom: 32px;
}

.mgb40 {
    margin-bottom: 40px;
}

.container {
    width: 380px;
    height: 410px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 1s;
}

.container::before {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
            transparent,
            transparent,
            #950839,
            #950839,
            #950839);
    z-index: 1;
    animation: roll 6s linear infinite;
    transform-origin: bottom right;
    pointer-events: none;
}

.container::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
            transparent,
            transparent,
            #950839,
            #950839,
            #950839);
    z-index: 1;
    animation: roll 6s linear infinite;
    transform-origin: bottom right;
    animation-delay: -3s;
    pointer-events: none;
}

.colorline::before {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
            transparent,
            transparent,
            #743418,
            #743418,
            #743418);
    z-index: 1;
    animation: roll 6s linear infinite;
    transform-origin: bottom right;
    animation-delay: -1.5s;
    pointer-events: none;
}

.colorline::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
            transparent,
            transparent,
            #743418,
            #743418,
            #743418);
    z-index: 1;
    animation: roll 6s linear infinite;
    transform-origin: bottom right;
    animation-delay: -4.5s;
    pointer-events: none;
}

@keyframes roll {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container form {
    position: absolute;
    background-color: #222;
    padding: 50px 40px;
    border-radius: 16px;
    background: linear-gradient(120deg, #191922, #1b0309);
    z-index: 110;
    inset: 4px;
}

.container form h2 {
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 24px;
    color: white;
}

.container form .inputbox {
    width: 300px;
    position: relative;
}

.container form .inputbox input {
    width: 100%;
    padding: 20px 10px 10px;
    /*上 左右 下*/
    background-color: transparent;
    outline: none;
    border: none;
    color: white;
    font-size: 16px;
}

.container form .inputbox label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 20px 0 10px;
    /*上 左右 下*/
    transition: all 0.5s;
    font-size: 16px;
    /* pointer-events: none; */
}

.container form .inputbox input:hover~label,
.container form .inputbox input:valid~label,
.container form .inputbox input:focus~label {
    transform: translateY(-34px);
    color: white;
    font-size: 14px;
}

.container form .inputbox i {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: white;
    width: 100%;
    height: 2px;
    transition: 0.5s;
    border-radius: 4px;
}


.container form .logging {
    width: 100%;
    border-radius: 8px;
    padding: 9px 25px;
    outline: none;
    border: none;
    letter-spacing: 10px;
    font-size: 16px;
    cursor: pointer;
}

.container form .logging:hover {
    background: linear-gradient(-120deg, #58bfff, #c3385b);
    color: white;
}

.container form .register,
.container form .login {
    text-align: right;
}

.container form .register a,
.container form .login a {
    color: #cdcdcd;
    text-decoration: none;
}

.container form .register a:hover,
.container form .login a:hover {
    color: white;
}